<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="js/vue.min.js"></script>
    <title>v-model结合select类型</title>
</head>
<body>
<div id="app">
    <!--select单选-->
    <select name="fruit" v-model="fruit">
        <option value="苹果">苹果</option>
        <option value="香蕉">香蕉</option>
        <option value="西瓜">西瓜</option>
    </select>
    <h2>你选择水果是：{{fruit}}</h2>

    <!--select多选-->
    <h2>要按住ctrl</h2>
    <select name="fruits" v-model="fruits" multiple>
        <option value="苹果">苹果</option>
        <option value="香蕉">香蕉</option>
        <option value="西瓜">西瓜</option>
    </select>
    <h2>你选择水果是：{{fruits}}</h2>
</div>
</body>
<script>
    const app = new Vue({
        el:'#app',
        data:{
            fruit:"苹果",
            fruits:[]
        }
    })
</script>
</html>